package com.hm.market.service;

import com.hm.market.dao.UserMapper;
import com.hm.market.domain.User;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author HM
 * @create 2018/2/27 16:08
 * @desc
 **/
@Service
public class UserService {

    private Logger logger = LoggerFactory.getLogger(this.getClass());
    @Autowired
    UserMapper userMapper;

    public User selectUserByUsername(String username){
        return userMapper.selectUserByUsername(username);
    }

    public List selectUserById(int id){
        return userMapper.selectUserById(id);
    }

    public List<User> selectUserById(){
        return userMapper.selectUserById();
    }
}
